package OnlyOneReturn;

public class Test {

	public String foo(int x) {

		if (x > 0) {
			return "hey"; // first exit
		}
		return "hi"; // second exit
	}

}
